<?php
return [
    'components' => [
        'db' => [
            'class' => '\common\db\MyConnection',
            'dsn' => '*',
            'username' => '*',
            'password' => '*',
            'charset' => 'utf8',
        ],
        'dbSupplierBigdata' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=rm-bp141zy9xm1v2008n.mysql.rds.aliyuncs.com;dbname=mycommunity_contractor_bigdata;',
            'username' => 'mysscm',
            'password' => 'ryFkxa8oh<d9nglX',
            'charset' => 'utf8',
        ],
        'cache' => [
            'class' => 'yii\caching\MemCache',
            'useMemcached' => true,
            'servers' => [
                'server1' => [
                    'host' => '*',
                    'port' => '*',
                    'weight' => 100,
                ],
            ],
        ],
        'mongodb' => [
            'class' => '\common\mongo\Connection',
            'dsn' => '*',
        ],
        'queue' => [
            'class' => '\common\queue\RedisQueue',
            'hostname' => 'r-bp1d8f1eeb1bfac4.redis.rds.aliyuncs.com',
            'password' => 'H9wihXpk6gJZ',
            'port' => 6379,
            'database' => 0,
        ],
        'mq' => [
            'class' => '\common\mq\alimns\AliMessageService',
            'accessId' => 'bz5CnJ8DYW2zMYuk',
            'accessKey' => 'kbwN4tL683w6NYDG0ayaSCVrxtLHim',
            'endPoint' => 'http://1132958195630943.mns.cn-hangzhou-internal.aliyuncs.com/',
        ],
        'elasticsearch' => [
            'class' => '\common\search\Connection',
            'auth' => ['username' => 'elastic', 'password' => '6xmGo^otUQhU8e^xwoq64Ey^'],
            'nodes' => [
                [
                    'http_address' => 'es-cn-0pp1adbj8000tat3p.elasticsearch.aliyuncs.com:9200',
                ],
            ],
        ],
    ],
];
